/*
 * Copyright 2010 Kevin L'Huillier <klhuillier@gmail.com>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package org.lhuillier.pwsafe.io;


/**
 * Thrown when a password decryption fails because the expected HMAC (Hash-based
 * Message Authentication Code) does not match the values that were decrypted.
 * <p>
 * This does not necessarily mean the key is invalid. The database could have
 * been corrupted. In most cases, an invalid key is the cause.
 */
public class DecryptionFailedException extends DbIoException {
    private static final long serialVersionUID = -7514620034696932443L;

    public DecryptionFailedException() {
    }

    public DecryptionFailedException(String message, Throwable cause) {
        super(message, cause);
    }

    public DecryptionFailedException(String message) {
        super(message);
    }

    public DecryptionFailedException(Throwable cause) {
        super(cause);
    }
}
